Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Nov 11, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on improving error handling in two pages of the dashboard by adding checks for missing metadata, leading to a notFound response when necessary.

Detailed summary

  • In page.tsx of the publish directory, added a check for publishMetadataFromUri. If not found, it calls notFound().
  • In page.tsx of the deploy directory, added a check for metadata. If not found, it calls notFound().

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Nov 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 11, 2024 6:31pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Nov 11, 2024 6:31pm
thirdweb_playground ⬜️ Skipped (Inspect) Nov 11, 2024 6:31pm
wallet-ui ⬜️ Skipped (Inspect) Nov 11, 2024 6:31pm

@vercel vercel bot temporarily deployed to Preview – docs-v2 November 11, 2024 17:05 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 11, 2024 17:05 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 11, 2024 17:05 Inactive
@changeset-bot
Copy link

changeset-bot bot commented Nov 11, 2024

⚠️ No Changeset found

Latest commit: dc0ea8a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 11, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@MananTank MananTank marked this pull request as ready for review November 11, 2024 17:05
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Nov 11, 2024
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @MananTank and the rest of your teammates on Graphite Graphite

@codecov
Copy link

codecov bot commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.70%. Comparing base (e4b4008) to head (dc0ea8a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5380   +/-   ##
=======================================
  Coverage   45.70%   45.70%           
=======================================
  Files        1070     1070           
  Lines       55671    55671           
  Branches     4081     4081           
=======================================
  Hits        25446    25446           
  Misses      29536    29536           
  Partials      689      689           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from e4b4008
packages 40.85% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 11, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 43.05 KB (0%) 862 ms (0%) 2.7 s (-20.41% 🔽) 3.5 s
thirdweb (cjs) 103.17 KB (0%) 2.1 s (0%) 5.2 s (+3.09% 🔺) 7.2 s
thirdweb (minimal + tree-shaking) 4.86 KB (0%) 98 ms (0%) 184 ms (-2.23% 🔽) 281 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 36 ms (-11.36% 🔽) 46 ms
thirdweb/react (minimal + tree-shaking) 17.58 KB (0%) 352 ms (0%) 702 ms (+95.66% 🔺) 1.1 s

@MananTank MananTank force-pushed the 11-11-catch_fetchdeploymetadata_error_and_redirect_to_404 branch from e50cd98 to 4b15db2 Compare November 11, 2024 17:09
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 11, 2024 17:09 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 11, 2024 17:09 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 11, 2024 17:09 Inactive
@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 11, 2024

Merge activity

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR enhances error handling in the `page.tsx` files for the `publish` and `deploy` routes. It introduces checks to call `notFound()` when metadata cannot be fetched, improving user experience by handling cases where the requested data is unavailable.

### Detailed summary
- In `apps/dashboard/src/app/(dashboard)/contracts/publish/[publish_uri]/page.tsx`:
  - Added a check for `publishMetadataFromUri` and called `notFound()` if it is not present.

- In `apps/dashboard/src/app/(dashboard)/contracts/deploy/[compiler_uri]/page.tsx`:
  - Added a check for `metadata` and called `notFound()` if it is not present.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
@MananTank MananTank force-pushed the 11-11-catch_fetchdeploymetadata_error_and_redirect_to_404 branch from 4b15db2 to dc0ea8a Compare November 11, 2024 18:28
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 11, 2024 18:28 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 11, 2024 18:29 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 11, 2024 18:29 Inactive
@graphite-app graphite-app bot merged commit dc0ea8a into main Nov 11, 2024
23 of 28 checks passed
@graphite-app graphite-app bot deleted the 11-11-catch_fetchdeploymetadata_error_and_redirect_to_404 branch November 11, 2024 18:32
@vercel vercel bot temporarily deployed to Production – wallet-ui November 11, 2024 18:32 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants